from fastapi import APIRouter

from app.types import apiproto
from app.service import usersvc
from app import utils


router = APIRouter(prefix="/api/user", tags=["用户相关借款"])


@router.post("/list")
async def userList(param: apiproto.UserListRequest) -> utils.HttpResponse:
    """
    用户列表-演示
    """
    data = usersvc.UserListService.getUserList(param)
    return utils.ResponseSuccess(data)